import $http from "../http.js"
//一级分类
export const getOneClassAll = () => {
	return $http("/service/one_classify/find_one_classify_all", {
		method: "get"
	})
}
//获取所有4s店铺
export const getListShop = () => {
	return $http("/shop/shop/list_shop_by_integral", {
		method: "get"
	})
}

//nearbyStores
export const nearbyStores = params => {
	return $http("/shop/shop/list_shop_info_all", {
		method: "get",
		data:params
	})
}

//获取店铺详情
export const getStoreById = params => {
	return $http("/shop/shop/get_shop_info", {
		method: "get",
		data: params
	})
}

//汽车服务下单
export const createCarservice = params => {
	return $http("/order/carservice_order/insert_carservice_order", {
		method: "post",
		data: params
	})
}

//订单详情
export const getOrderDetail = params => {
	return $http("/order/carservice_order/find_new_user_all_order", {
		method: "get",
		data: params
	})
}
